package com.financing.wap.dao.impl;

import java.math.BigDecimal;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.financing.wap.dao.IFpOrderRebateDao;
import com.financing.wap.dto.FpOrderRebate;

@Repository("fpOrderRebateDao")
@SuppressWarnings(value={"deprecation"})
public class FpOrderRebateDaoImpl extends BaseDaoImpl<FpOrderRebate, Integer>  implements IFpOrderRebateDao{



	@Override
	public Class<FpOrderRebate> getEntityClass() {
	
		return FpOrderRebate.class;
	}

	@Override
	public BigDecimal calcAllRebatesByDate(Map<String, Object> paramMap) {
		return (BigDecimal)this.getSqlMapClientTemplate().queryForObject("fpOrderRebate.calcAllRebatesByDate", paramMap);
	}

	@Override
	public BigDecimal todayAllRebatesByDate(Map<String, Object> paramMap) {
		return (BigDecimal)this.getSqlMapClientTemplate().queryForObject("fpOrderRebate.todayAllRebatesByDate", paramMap);
	
	}

}
